<div ng-if="::argsType.length > 0" class="query-parameters">
  <h4 ng-if="::noHeader === undefined">Parameters</h4>

  <table class="table table-striped table-condensed table-bordered">
    <thead>
      <th>Parameter</th>
      <th>Type</th>
      <th>Description</th>
    </thead>
    <tbody>
      <tr ng-repeat="field in ::controller.descriptorFields">
        <td>{$ ::prefix $}{$ ::field.name $}</td>
        <td>
          <abbr ng-if="::controller.typeHints[field.type] !== undefined"
                title="{$ ::controller.typeHints[field.type] $}">
            {$ ::field.type $}
          </abbr>
          <span ng-if="::controller.typeHints[field.type] === undefined">
            {$ ::field.type $}
          </span>
        </td>
        <td>
          <grr-api-description value="::field.doc"></grr-api-description>
          <span ng-if="::field.type == 'EnumNamedValue'">
            Possible values:
            <ul>
              <li ng-repeat="allowedValue in ::field.allowed_values">
                {$ ::allowedValue.name $}
                <span ng-if="::allowedValue.doc.length > 0">
                  - {$ ::allowedValue.doc $}
                </span>
              </li>
            </ul>
          </span>
        </td>
      </tr>
    </tbody>
  </table>
</div>
</div>
